import { BaseController } from "sap/ui/demo/nav/controller/BaseController";

/**
 * @namespace sap.ui.demo.nav.controller.employee.overview
 */
export default class EmployeeOverview extends BaseController {
  onInit(): void {
    console.info("EmployeeOverview init...");
    this.router
      .getRoute("employeeOverview")
      ?.attachMatched(this._routeMatched, this);
  }
  private _routeMatched() {
    console.info("EmployeeOverview._routeMatched");
    this.router
      .getTargets()
      ?.display(["employeeOverviewTop", "employeeOverviewContent"]);
  }
}
